//
//  APIRequest.h
//  ProjectDemo
//
//  Created by IOS3 on 2018/10/23.
//  Copyright © 2018 IOS3. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "APIRequestManager.h"
#import "APIResponse.h"


NS_ASSUME_NONNULL_BEGIN

@interface APIRequest : NSObject

// ======  DEFAULT BASE URL =====
/// GET请求  default base url 对成功链接的responseObject已经与服务约定错误码再次进行比对,得到的response
+ (NSURLSessionDataTask *)GET_default_final:(NSString *)uri params:(id)params complete:(void(^)(APIResponse *response))complete;
/// POST请求 default base url 对成功链接的responseObject已经与服务约定错误码再次进行比对,得到的response
+ (NSURLSessionDataTask *)POST_default_final:(NSString *)uri params:(id)params complete:(void(^)(APIResponse *response))complete;
/// GET请求  default base url response字段为 AFN 请求结果(s/f)
+ (NSURLSessionDataTask *)GET_default:(NSString *)uri params:(id)params complete:(void(^)(APIResponse *response))complete;
/// POST请求 default base url response字段为 AFN 请求结果(s/f)
+ (NSURLSessionDataTask *)POST_default:(NSString *)uri params:(id)params complete:(void(^)(APIResponse *response))complete;

@end

NS_ASSUME_NONNULL_END
